from django.conf.urls import patterns, url
from .views import catalog, subspecies, show_birds, go_cart, show_item, bird_detail

urlpatterns = patterns('',
    url(r'^$', catalog.as_view(), name='catalog_base'),       
    url(r'especie/(?P<id>\d+)/$', subspecies.as_view(), name='subspecies'), 
    url(r'especie/(?P<id>\d+)/(?P<idSub>\d+)/$', show_birds.as_view(), name='birds'),
    url(r'^especie/(?P<id>\d+)/(?P<idSub>\d+)/(?P<idBir>\d+)/$', bird_detail.as_view(), name='detail_bird'), 
    url(r'^cart/$', go_cart.as_view(), name='go_cart'),
    url(r'^cart/cart-ajax/$', show_item.as_view(), name='cart-ajax'),
)